Skip to content

[oadp-1.4] OADP-8486: Added startup probe - #2325

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:oadp-1.4from
NicholasYancey:add-startup-probe-1.4-only
Jul 24, 2026
Merged

[oadp-1.4] OADP-8486: Added startup probe#2325
openshift-merge-bot[bot] merged 1 commit into
openshift:oadp-1.4from
NicholasYancey:add-startup-probe-1.4-only

Conversation

@NicholasYancey

Copy link
Copy Markdown
Contributor

Why the changes were made

Adds a StartupProbe to the CLI download server deployment on oadp-1.4, giving the container up to 60 seconds to start before liveness checks begin. This prevents premature restarts on slow-starting nodes and is required for Telco/CNF health-check certification (liveness/readiness/startup probes must be present on all deployed containers).

Also backfills the probe onto existing deployments during an operator upgrade, so already-running clusters get it automatically without manual intervention.

How to test the changes made

Run the unit tests covering the new probe and backfill logic:

go test ./internal/controller/... -run 'CLIServer|CLIResources' -v

On a live cluster, confirm the probe shows up on the deployment:

oc get deploy -n openshift-adp openshift-adp-oadp-cli-server \
  -o jsonpath='{.spec.template.spec.containers[0].startupProbe}{"\n"}'

@NicholasYancey NicholasYancey self-assigned this Jul 24, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 24, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 24, 2026

Copy link
Copy Markdown

@NicholasYancey: This pull request references OADP-8486 which is a valid jira issue.

Details

In response to this:

Why the changes were made

Adds a StartupProbe to the CLI download server deployment on oadp-1.4, giving the container up to 60 seconds to start before liveness checks begin. This prevents premature restarts on slow-starting nodes and is required for Telco/CNF health-check certification (liveness/readiness/startup probes must be present on all deployed containers).

Also backfills the probe onto existing deployments during an operator upgrade, so already-running clusters get it automatically without manual intervention.

How to test the changes made

Run the unit tests covering the new probe and backfill logic:

go test ./internal/controller/... -run 'CLIServer|CLIResources' -v

On a live cluster, confirm the probe shows up on the deployment:

oc get deploy -n openshift-adp openshift-adp-oadp-cli-server \
 -o jsonpath='{.spec.template.spec.containers[0].startupProbe}{"\n"}'

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 83e39b75-df77-4dcd-bb10-bdc916fccbf1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from Joeavaikath and eemcmullan July 24, 2026 15:00
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 37.47%. Comparing base (a1eedd6) to head (985bf58).
⚠️ Report is 2 commits behind head on oadp-1.4.

⚠️ Current head 985bf58 differs from pull request most recent head 03dafac

Please upload reports for the commit 03dafac to get more accurate results.

Files with missing lines Patch % Lines
controllers/cli_download_controller.go 96.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           oadp-1.4    #2325      +/-   ##
============================================
+ Coverage     32.15%   37.47%   +5.32%     
============================================
  Files            30       30              
  Lines          4933     4998      +65     
============================================
+ Hits           1586     1873     +287     
+ Misses         3172     2931     -241     
- Partials        175      194      +19     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 24, 2026
@kaovilai

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci

openshift-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai, NicholasYancey, sseago

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 24, 2026
@openshift-ci

openshift-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown

@NicholasYancey: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 17801cc into openshift:oadp-1.4 Jul 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants